package com.example.administrator.yuejian23.Activity;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.administrator.yuejian23.R;
import com.squareup.picasso.Picasso;

/**
 * Created by Administrator on 2017/10/18.
 */

public class ShaiTuInfoActivity extends Activity{
    private TextView S_Name;
    private ImageView S_Pic;
    private TextView S_Time;
    private TextView S_ClubName;
    private TextView S_Title;
    private ImageView S_address;
    private ImageView S_address1;
    private ImageView S_address2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shaitu_detail);


        String Suser_Name=getIntent().getStringExtra("Suser_Name");
        String Suser_Pic=getIntent().getStringExtra("Suser_Pic");
        String Suser_Time=getIntent().getStringExtra("Suser_Time");
        String Suser_ClubName=getIntent().getStringExtra("Suser_ClubName");
        String Suser_Title=getIntent().getStringExtra("Suser_Title");
        String Suser_address=getIntent().getStringExtra("Suser_address");
        String Suser_address1=getIntent().getStringExtra("Suser_address1");
        String Suser_address2=getIntent().getStringExtra("Suser_address2");
        S_Name= (TextView) findViewById(R.id.Suser_Name);
        S_Name.setText(Suser_Name);

        S_Pic= (ImageView) findViewById(R.id.Suser_Pic);
        Picasso.with(ShaiTuInfoActivity.this)
                .load(Suser_Pic)
                .into(S_Pic);
        S_Time= (TextView) findViewById(R.id.Suser_Time);
        S_Time.setText(Suser_Time);

        S_ClubName= (TextView) findViewById(R.id.Suser_ClubName);
        S_ClubName.setText(Suser_ClubName);

        S_Title= (TextView) findViewById(R.id.Suser_Title);
        S_Title.setText(Suser_Title);

        S_address= (ImageView) findViewById(R.id.Suser_address);
        Picasso.with(ShaiTuInfoActivity.this)
                .load(Suser_address)
                .into(S_address);
        S_address1= (ImageView) findViewById(R.id.Suser_address1);
        Picasso.with(ShaiTuInfoActivity.this)
                .load(Suser_address1)
                .placeholder(R.drawable.ic_club)
                .noFade()
                .into(S_address1);
        S_address2= (ImageView) findViewById(R.id.Suser_address2);
        Picasso.with(ShaiTuInfoActivity.this)
                .load(Suser_address2)
                .placeholder(R.drawable.ic_favor)
                .noFade()
                .into(S_address2);
    }
}

